<style>
  .fly-home{
    background: url("{$Think.cookie.LoginUser['cover']}") repeat left top;
  }
</style>

<div class="fly-home fly-panel" >
  <!-- 头像 -->
  <img src="{$Think.cookie.LoginUser['avatar']}" />

  <!-- 认证 -->
  {if condition="$LoginUser['auth'] > 0"}
    <i class="iconfont icon-renzheng" title="认证信息:{$LoginUser['nickname']}作者"></i>
  {/if}
  
  <h1>
    {$Think.cookie.LoginUser['nickname']}

    <!-- 性别 -->
    {if condition="$LoginUser.sex==1"}
      <i class="iconfont icon-nan"></i>
    {elseif condition="$LoginUser.sex==2" /}
      <i class="iconfont icon-nv"></i>
    {/if}
    
    <!-- vip -->
    {if condition="$Think.cookie.LoginUser['vip']>0"}
      <i class="layui-badge fly-badge-vip">VIP{$Think.cookie.LoginUser['vip']}</i>
    {/if}
  </h1>

  <!-- 认证信息 -->
  {if condition="$LoginUser['auth']>0"}
    <p style="padding: 10px 0; color: #5FB878;">认证信息：{$LoginUser.nickname}</p>
  {else /}
    <p style="padding: 10px 0; color: red;">认证信息：暂无</p>
  {/if}
  

  <p class="fly-home-info">
    <i class="iconfont icon-kiss" title="积分"></i><span style="color: #FF7200;">{$LoginUser.point} 积分</span>
    <i class="iconfont icon-shijian"></i><span>{$LoginUser.createtime} 加入</span>

    {if condition="$LoginUser.province"}
      <i class="iconfont icon-chengshi"></i>
      <span>
        来自{$LoginUser.provinces.name}
        {if condition="$LoginUser.city"}
          {$LoginUser.citys.name}
        {/if}
      </span>
    {else /}
      <i class="iconfont icon-chengshi"></i><span>来自:保密</span>
    {/if}
  </p>

  {if condition="$LoginUser.content"}
    <p class="fly-home-sign">（{$LoginUser.content}）</p>
  {else /}
    <p class="fly-home-sign">（这个人很懒，什么都没写~）</p>
  {/if}
</div>

<!-- 发帖量 -->
<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$LoginUser.nickname} 最近的提问</h3>
        <ul class="jie-row">
          {if condition="$postlist"}
            {foreach $postlist as $item}
              <li>
                {if condition="$item['state'] == 1"}
                  <span class="fly-jing layui-bg-red">顶</span>
                {elseif condition="$item['state'] == 2" /}
                  <span class="fly-jing layui-bg-green">精</span>
                {elseif condition="$item['state'] == 3" /}
                  <span class="fly-jing layui-bg-black">热</span>
                {/if}
                
                <a href="{:url('home/index/info',['postid'=>$item['id']])}" class="jie-title">{$item.title}</a>
                <i>{$item.createtime}</i>
                <em class="layui-hide-xs">{$item.visit_text}阅/{$item.comment}答</em>
              </li>
            {/foreach}
          {else /}
            <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
              <i style="font-size:14px;">没有发表任何求解</i>
            </div>
          {/if}
          
        </ul>
      </div>
    </div>
    
    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$LoginUser.nickname} 最近的回答</h3>
        <ul class="home-jieda">
          {if condition="$commentlist"}
            {foreach $commentlist as $item}
              <li>
                <p>
                  <span>{$item.createtime}</span>
                  在<a href="{:url('home/index/info',['postid'=>$item.post.id])}" target="_blank">{$item.post.title}</a>中回答：
                </p>
                <div class="home-dacontent">
                  {$item.content}
                </div>
              </li>
            {/foreach}
          {else /}
            <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
          {/if}
        </ul>
      </div>
    </div>
  </div>
</div>